<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>分类管理</title>
    <link rel="stylesheet" type="text/css" href="http://localhost/e-shop/xiangqu/Static/hdjs/hdjs.css">
   	<style type="text/css">
   		/*.wrap .hd-table tr td{
   			text-align: center;
   			padding: 10px 0px;
   		}*/
   		.position-bottom{
   			width:100px;
   			height: 40px;
   			/*margin: 0 auto;*/
   			/*background: red;*/
   		}
   		.wrap .inp{
   			height: 35px;
   			width: 300px;
   		}
   		.hd-btn{
   			width: 100px;
   		}
   	</style>
</head>
<body>
<div class="wrap">
    <div class="hd-title-header">修改货品</div>
    <p class="hd-title-header" style="text-align: center;">货品信息</p>
    <form action="" method="post" class="form-inline hd-form">
        <table class="hd-table hd-table-list" border="0">
        	<?php foreach ($datagroup as $k=>$v){?>
            <tr>
                <td width="500"><?php echo $v['taname'];?></td>
                <td>
                	<select name="combinespec[]">
                		<option value="0">--请选择--</option>
                		<?php foreach ($v['gvalues'] as $kk=>$vv){?>
                		<option value="<?php echo $kk;?>"     <?php if(in_array($kk,$oldData['combinespec'])){ ?>selected<?php } ?> ><?php echo $vv;?></option>
                		<?php }?>
                	</select>
                </td>
            </tr> 
            <?php }?>
            <tr>
            	<td style="text-align:left">货品库存</td>
            	<td><input type="text" name="glstock" value="<?php echo $oldData['glstock'];?>" /></td>
            </tr>
             <tr>
            	<td style="text-align:left">货品单号</td>
            	<td><input type="text" name="glnumber" value="<?php echo $oldData['glnumber'];?>" /></td>
            </tr>
           	<tr>
           		<td style='border-bottom:none'>
            		<input type="submit" class="hd-btn hd-btn-success" value="修改"/>
            	</td>
            	<td style="border-bottom:none"></td>
           	</tr>
        </table>
        <!--<div class="position-bottom">
            <input type="submit" class="hd-btn hd-btn-success" value="添加"/>
        </div>-->
    </form>
</div>
</body>
</html>